#ifndef _USER_MAIN_H
#define _USER_MAIN_H

#include "stdio.h"
#include "stdint.h"
#include "./board_g3507/bsp_g3507std.h"

#define DEVICE_ID       DEVICE_ID_G3507

/* The major version, (1, if %LIBMODBUS_VERSION is 1.2.3) */
#define BSP_VERSION_MAJOR (0)

/* The minor version (2, if %LIBMODBUS_VERSION is 1.2.3) */
#define BSP_VERSION_MINOR (9)

/* The micro version (3, if %LIBMODBUS_VERSION is 1.2.3) */
#define BSP_VERSION_MICRO (0)

// /* The full version, like 1.2.3 */
// #define LIBMODBUS_VERSION        3.1.6

/* The full version, in string form (suited for string concatenation)
 */
#define BSP_VERSION_STRING "3.1.6"

/* Numerically encoded version, eg. v1.2.3 is 0x010203 */
#define BSP_VERSION_HEX ((BSP_VERSION_MAJOR << 16) |  \
                               (BSP_VERSION_MINOR <<  8) |  \
                               (BSP_VERSION_MICRO <<  0))
// #define BSP_VERSION     1

extern volatile uint32_t g_ticks;
extern volatile uint32_t g_ticks_inc ;

#endif